Skip to content

fix(evidence): index captured verify receipts - #552

Merged
solomonneas merged 2 commits into
mainfrom
fix/verify-miseledger-auto-import
Jul 26, 2026
Merged

fix(evidence): index captured verify receipts#552
solomonneas merged 2 commits into
mainfrom
fix/verify-miseledger-auto-import

Conversation

@solomonneas

@solomonneas solomonneas commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Automatically export and import pending Brigade receipts after work verify run --capture.
  • Report MiseLedger indexing status in text and JSON output.
  • Preserve the verification exit code when MiseLedger is missing or import fails.
  • Advance --new-only cursors only after a successful requested import.
  • Keep manual receipt export for backlog recovery and fleet indexing.
  • Exercise automatic and manual receipt indexing as separate paths in Windows native acceptance.

Root cause

Outcome capture and receipt indexing were separate operations. --capture wrote the outcome locally but did not send the new verification receipt to MiseLedger, so evidence searches could return nothing until a separate manual export ran.

The existing export path also advanced cursor hashes before import succeeded. A failed import could therefore make pending evidence look exported and prevent an automatic retry.

Validation

  • Full gate: PY=$HOME/repos/brigade/.venv/bin ./scripts/verify
  • Brigade receipt: 20260726-205738-work-verify-2e669a
  • Exit code: 0
  • Post-rebase smoke output: miseledger indexing: indexed 3 receipt(s)
  • Live evidence lookup returned MiseLedger item 097ab1f332b4f5bd7d9e9a22

GraphTrail impact analysis covered verification, outcome capture, receipt export, fleet cursor finalization, downstream receipt consumers, and the CI contract test.

Co-Authored-By: Codex <codex@openai.com>
@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3cab7781-d3ba-480e-a659-4d84d6e9e182

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/verify-miseledger-auto-import

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@solomonneas solomonneas self-assigned this Jul 26, 2026
Co-Authored-By: Codex <codex@openai.com>
@solomonneas
solomonneas merged commit 0939de3 into main Jul 26, 2026
28 checks passed
@solomonneas
solomonneas deleted the fix/verify-miseledger-auto-import branch July 26, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant